﻿
new Vue({
    el: '#app',
    delimiters:['[[', ']]'],

    data: {
        fast_reply_id: {{ fast_reply.fast_reply_id }},
        fast_reply_message: '{{ fast_reply.message }}',
        fast_reply_orderno: '{{ fast_reply.orderno }}',
    },

    methods: {
        saveFastReplyInfo() {
            let url = "{% url 'gma:api_edit_fast_reply' %}";
            let data = {
                'fast_reply_id' : this.fast_reply_id,
                'fast_reply_message' : this.fast_reply_message,
                'fast_reply_orderno' : this.fast_reply_orderno,
            };
            new my_ajax(url, data, '', '', () => {
                show_toast('修改成功');
                redirect();
            });
        },

        cancel() {
            window.history.back();
        },
    },

    mounted() {
    },
});
